
<fieldset>
    <legend>条件搜索</legend>
    <form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get" autocomplete="off">
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-inline">
                <select name="status">
                    <option value="">全部</option>
                    <option value="1"{if $status==1} selected{/if}>未支付</option>
                    <option value="2"{if $status==2} selected{/if}>充值成功</option>
                    <option value="3"{if $status==3} selected{/if}>充值失败</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">是否确认</label>
            <div class="layui-input-inline">
                <select name="status2">
                    <option value="99">全部</option>
                    <option value="0"{if $status2==0} selected{/if}>未确认</option>
                    <option value="1"{if $status2==1} selected{/if}>已确认</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">渠道</label>
            <div class="layui-input-inline">
                <select name="recharge_type">
                    <option value="-">全部</option>
                    {foreach $pay_list as $k=>$v}
                    <option value="{$v}"{if $Think.get.recharge_type==$v} selected{/if}>{$v}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">一级代理</label>
            <div class="layui-input-inline">
                <select name="agent_id">
                    <option value="0">全部</option>
                    {foreach $agent_list as $k=>$v}
                    <option value="{$k}"{if $agent_id==$k} selected{/if}>{$v}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">二级代理</label>
            <div class="layui-input-inline">
                <select name="agent_service_id">
                    <option value="0">全部</option>
                    {foreach $agent_service_list as $k=>$v}
                    <option value="{$k}"{if $agent_service_id==$k} selected{/if}>{$v}</option>
                    {/foreach}
                </select>
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">订单号</label>
            <div class="layui-input-inline">
                <input name="oid" value="{$Think.get.oid|default=''}" placeholder="请输入订单号" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">用户名称</label>
            <div class="layui-input-inline">
                <input name="username" value="{$Think.get.username|default=''}" placeholder="请输入用户名称" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">手机号码</label>
            <div class="layui-input-inline">
                <input name="tel" value="{$Think.get.tel|default=''}" placeholder="请输入手机号码" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">添加时间</label>
            <div class="layui-input-inline">
                <input data-date-range name="addtime" value="{$Think.get.addtime|default=''}" placeholder="请选择添加时间" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item layui-inline">
            <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
        </div>
    </form>
</fieldset>

<script>form.render()</script>
